﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace XZTZ.UMP.Public.Models.Base
{
    [Table("Base_CompanyType")]
    public class CompanyType
    {
        [Key]
        [DisplayName("单位类型ID")]
        public Guid guidCompanyTypeID { get; set; }
        [StringLength(2)]
        [Required]
        [DisplayName("单位类型编码")]
        public string strTypeCode { get; set; }
        [StringLength(20, MinimumLength = 1)]
        [Required]
        [DisplayName("单位类型名称")]
        public string strTypeName { get; set; }

        [DataType(DataType.Date)]
        [DisplayName("日期")]
        public DateTime dtmOperateDate { get; set; }
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DisplayName("索引")]
        [NotMapped]//只读

        public int intIndexNo { get; set; }
        [DisplayName("是否禁用")]
        public bool blnTabooFlag { get; set; }
    }
}
